package com.mop.controller;

import com.mop.pojo.Rights;
import com.mop.pojo.User;
import com.mop.service.RightsService;
import com.mop.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/rights")
public class RightsController {
@Autowired
    private RightsService rightsService;
@GetMapping("/getRightsList")
     public SysResult getRightsList(){
       List<Rights> rightsList=rightsService.getRightsList();
       return SysResult.success(rightsList);

}

}
